/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const nestedRouter = {
  path: '/wechat',
  component: Layout,
  name: 'wechat',
  meta: {
    title: 'wechat',
    icon: 'nested'
  },
  children: [
    {
      path: 'order',
      component: () => import('@/views/wechat/order/index'), // Parent router-view
      name: 'order',
      meta: {
        title: 'order'
      }
    }, {
      path: 'queue',
      component: () => import('@/views/wechat/queue/index'), // Parent router-view
      name: 'queue',
      meta: {
        title: 'queue'
      }
    }, {
      path: 'order/list',
      component: () => import('@/views/wechat/order/list'),
      name: 'orderList',
      meta: {
        title: 'orderList'
      }
    }
  ]
}

export default nestedRouter
